package Chapter04;
/*
 * 1+2+3+4+5+6+7+8+9+10
 */

public class Demo04_while {
	public static void main(String[] args) {
		int i=0,x=1;
		while(x<=10) {
			i=i+x;
			x++;
		}
		System.out.println(i);
	}

}
